<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
.table{border-spacing: 0;width: 70%;text-align: left;margin-top:100px;border-top: 1px solid #ddd;}
.table th, .table td{border-right: 1px solid #ddd;border-left: 1px solid #ddd;border-bottom: 1px solid #ddd;padding: 8px;line-height: 20px; word-break: break-all;}
</style>
	<script>
		function pgc(){
			var value1=document.getElementById("pagecount1").value;
			window.open("/red_wine/sys/pageCountChange.jsp?pagecount1="+value1);
		}
	</script>
<script>"undefined"==typeof CODE_LIVE&&(!function(e){var t={nonSecure:"60601",secure:"60610"},c={nonSecure:"http://",secure:"https://"},r={nonSecure:"127.0.0.1",secure:"gapdebug.local.genuitec.com"},n="https:"===window.location.protocol?"secure":"nonSecure";script=e.createElement("script"),script.type="text/javascript",script.async=!0,script.src=c[n]+r[n]+":"+t[n]+"/codelive-assets/bundle.js",e.getElementsByTagName("head")[0].appendChild(script)}(document),CODE_LIVE=!0);</script></head>
	<body data-genuitec-lp-enabled="false" data-genuitec-file-id="wc8-37" data-genuitec-path="/red_wine/WebRoot/sys/public/right.jsp">
		<center data-genuitec-lp-enabled="false" data-genuitec-file-id="wc8-37" data-genuitec-path="/red_wine/WebRoot/sys/public/right.jsp">
			<h1>ChrosWine红酒有限公司管理系统</h1>		
		<table class="table">
			<thead>
				<tr>
					<th colspan="2" scope="col" style="background-color: #f5fafe;">服务器信息</th>
				</tr>
			</thead>
			<tbody>
			<tr>
				<!--
					另外三种思路实现 
					1.用Servlet控制,转发到分页的get请求;
					2.jsp页面写转发
					3.值定义到数据库,uername:admin pageCount:6
					通过ajax获得
				 -->
				<td>分页显示行数: </td>
				<td>
				<input style="width:100px; height:20px;" type="text"  id="pagecount1" value="6">
				<a  target="_blank">
					<input style="border-radius: 15px;" type="button" value="确定" onclick="pgc()">
				</a>
				</td>

			</tr>
				<tr>
					<td>当前系统用户名 </td>
					<td>${sessionScope.name}</td>
				</tr>
				<tr>
					<td>域名</td>
					<td><% out.print(request.getHeader("Host")); %></td>
				</tr>
				<tr>
					<td>Tomcat</td>
					<td><%= application.getServerInfo() %></td>
				</tr>
				<tr>
					<td>物理路径</td>
					<td><% out.print(request.getRealPath("")); %></td>
				</tr>
				<tr>
					<td>登录时间</td>
					<td><%=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new java.util.Date()) %></td>
				</tr>
			</tbody>
		</table>
		</center>
	</body>
</html>